﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace EMC.VISITOR.Application;

    /// <summary>
    /// 訪客黑名單输出参数
    /// </summary>
    public partial class VistLogBlackDto
    {
        /// <summary>
        /// Flow系统公司名称
        /// </summary>
        public string? Companysupplier_name { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserIdRealName { get; set; }
        
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdateUserIdRealName { get; set; }
        
        /// <summary>
        /// Id
        /// </summary>
        public long Id { get; set; }
        
        /// <summary>
        /// 黑名单姓名
        /// </summary>
        public string? Name { get; set; }
        
        /// <summary>
        /// 黑名单证件号
        /// </summary>
        public string? IdCard { get; set; }
        
        /// <summary>
        /// 证件照片
        /// </summary>
        public string? IdCardImg { get; set; }
        
        /// <summary>
        /// Flow系统公司名称
        /// </summary>
        public string? Company { get; set; }
        
        /// <summary>
        /// 限制开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        
        /// <summary>
        /// 限制结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool? IsEnabled { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        public long? CreateUserId { get; set; }
        
        /// <summary>
        /// 修改人
        /// </summary>
        public long? UpdateUserId { get; set; }
        
    }

    
  /// <summary>
    /// 訪客黑名單导出导入
    /// </summary>
    [ExcelExporter(Name = "訪客黑名單", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true,AutoCenter =true)]
    [ExcelImporter( IsLabelingError = true,SheetName ="訪客黑名單")]
    public partial class ExportImportVistLogBlackDto
    {
        /// <summary>
        /// 黑名单姓名
        /// </summary>
        [ExporterHeader(DisplayName = "黑名单姓名", IsBold = true)]
        [ImporterHeader(Name = "黑名单姓名")]
         [Required(ErrorMessage ="黑名单姓名为必填字段！")]
        public virtual string? Name { get; set; }
        
        /// <summary>
        /// 黑名单证件号
        /// </summary>
        [ExporterHeader(DisplayName = "黑名单证件号", IsBold = true)]
        [ImporterHeader(Name = "黑名单证件号")]
         [Required(ErrorMessage ="黑名单证件号为必填字段！")]
        public virtual string? IdCard { get; set; }
        
        /// <summary>
        /// 证件照片
        /// </summary>
        [ExporterHeader(DisplayName = "证件照片", IsBold = true)]
        [ImporterHeader(Name = "证件照片")]
         [Required(ErrorMessage ="证件照片为必填字段！")]
        public virtual string? IdCardImg { get; set; }
        
        /// <summary>
        /// Flow系统公司名称
        /// </summary>
        [ExporterHeader(DisplayName = "Flow系统公司名称", IsBold = true)]
        [ImporterHeader(Name = "Flow系统公司名称")]
        public virtual string? Companysupplier_name { get; set; }
        [ExporterHeader(DisplayName = "Flow系统公司名称_标识", IsBold = true)]
        [ImporterHeader(Name = "Flow系统公司名称_标识")]
        public virtual string? Company { get; set; }
        /// <summary>
        /// 限制开始时间
        /// </summary>
        [ExporterHeader(DisplayName = "限制开始时间", IsBold = true)]
        [ImporterHeader(Name = "限制开始时间")]
        public virtual DateTime? StartTime { get; set; }
        
        /// <summary>
        /// 限制结束时间
        /// </summary>
        [ExporterHeader(DisplayName = "限制结束时间", IsBold = true)]
        [ImporterHeader(Name = "限制结束时间")]
        public virtual DateTime? EndTime { get; set; }
        
        /// <summary>
        /// 是否启用
        /// </summary>
        [ExporterHeader(DisplayName = "是否启用", IsBold = true)]
        [ImporterHeader(Name = "是否启用")]
        public virtual bool? IsEnabled { get; set; }
        
        /// <summary>
        /// 备注
        /// </summary>
        [ExporterHeader(DisplayName = "备注", IsBold = true)]
        [ImporterHeader(Name = "备注")]
        public virtual string? Remark { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        [ExporterHeader(DisplayName = "创建时间", IsBold = true)]
        [ImporterHeader(Name = "创建时间")]
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        [ExporterHeader(DisplayName = "更新时间", IsBold = true)]
        [ImporterHeader(Name = "更新时间")]
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        [ExporterHeader(DisplayName = "创建人", IsBold = true)]
        [ImporterHeader(Name = "创建人")]
        public virtual string CreateUserIdRealName { get; set; }
        [ExporterHeader(DisplayName = "创建人_标识", IsBold = true)]
        [ImporterHeader(Name = "创建人_标识")]
        public virtual long? CreateUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [ExporterHeader(DisplayName = "修改人", IsBold = true)]
        [ImporterHeader(Name = "修改人")]
        public virtual string UpdateUserIdRealName { get; set; }
        [ExporterHeader(DisplayName = "修改人_标识", IsBold = true)]
        [ImporterHeader(Name = "修改人_标识")]
        public virtual long? UpdateUserId { get; set; }
    }